package org.supper.auth.exception;

import feign.codec.ErrorDecoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignGlobalConfig {

    @Bean
    ErrorDecoder responseErrorDecoder() {
        // 调用异常处理
        return new DefaultErrorDecoder();
    }
}